projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d1d4c
)
(reb-update-overlays): Distinguish between one and several matches in message.
author
John Paul Wallington
<jpw@pobox.com>
Fri, 9 Jul 2004 17:16:59 +0000
(17:16 +0000)
committer
John Paul Wallington
<jpw@pobox.com>
Fri, 9 Jul 2004 17:16:59 +0000
(17:16 +0000)
lisp/emacs-lisp/re-builder.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/re-builder.el
b/lisp/emacs-lisp/re-builder.el
index 83d3649006e24b4fce73fa11c12aececfb221962..c6112c4a105d767f03cc2385a4e01edff7da06aa 100644
(file)
--- a/
lisp/emacs-lisp/re-builder.el
+++ b/
lisp/emacs-lisp/re-builder.el
@@
-670,9
+670,10
@@
If SUBEXP is non-nil mark only the corresponding sub-expressions."
(overlay-put overlay 'priority i)))
(setq i (1+ i))))))
(let ((count (if subexp submatches matches)))
- (message"%s %smatch
(es)
%s"
+ (message"%s %smatch
%s
%s"
(if (= 0 count) "No" (int-to-string count))
(if subexp "subexpression " "")
+ (if (= 1 count) "" "es")
(if (and reb-auto-match-limit
(= reb-auto-match-limit count))
" (limit reached)" "")))